﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<%@ Register TagPrefix="recaptcha" Namespace="Recaptcha" Assembly="Recaptcha" %>

<script runat="server">     
    void btnSubmit_Click(object sender, EventArgs e)
    {
        if (Page.IsValid)
        {
            lblResult.Text = "You Got It!";
            lblResult.ForeColor = System.Drawing.Color.Green;
        }
        else
        {
            lblResult.Text = "Incorrect";
            lblResult.ForeColor = System.Drawing.Color.Red;
        }
    }
</script>

<div class="editor-label">
    Please prove that you are human.
</div>

<asp:Label Visible="false" ID="lblResult" runat="server" />
<recaptcha:RecaptchaControl
    ID="recaptcha"
    runat="server"
    PublicKey="6LfqwMUSAAAAAGML1X1NnjwUrvMGOaj2aeU49Uzc"
    PrivateKey="6LfqwMUSAAAAANg1xPtPh03losevqoGioVQqJ5HL"
    />